const dev = {
  '/pudu-admin-gateway/': {
    target: 'http://119.91.222.89:8881',
    pathRewrite: {
      '^/pudu-admin-gateway': '' // 重写接口
    },
    ws: false,
    changeOrigin: true
  }
}
/**
 * 如需要调试测试环境 将环境变量VUE_APP_PROXY = test
 * 建议方案添加.env.development.local，覆盖环境变量 该文件不会提交到git
 * 文档地址 https://cli.vuejs.org/zh/guide/mode-and-env.html#%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F
 */
const test = Object.assign({}, dev, {
  '/pudu-admin-gateway/': {
    target: 'http://101.33.225.241:8881',
    pathRewrite: {
      '^/pudu-admin-gateway': '' // 重写接口
    },
    ws: false,
    changeOrigin: true
  }
})

module.exports = {
  test,
  dev
}
